﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MyUtils;
namespace CoffeeManager
{
    
    public  class MyMessageBox
    { 
        MyMessageFrm myMessageFrm = new MyMessageFrm(); 
       public static  MyMessageBoxResults Show(String text)
       {
           MyMessageFrm myMessageFrm = new MyMessageFrm();
           myMessageFrm.MessageText = text;
           myMessageFrm.CreateButtonList();
           myMessageFrm.SetButtons(MyMessageBoxButtons.OK);
           return myMessageFrm.ShowMyMessageBox();
       }
       public static MyMessageBoxResults Show(String text, String caption)
       {
           MyMessageFrm myMessageFrm = new MyMessageFrm();
           myMessageFrm.MessageText = text;
           myMessageFrm.MessageCaption = caption;  
           return myMessageFrm.ShowMyMessageBox();
       }
       public static MyMessageBoxResults Show(String text, String caption, MyMessageBoxButtons buttons)
       {
           MyMessageFrm myMessageFrm = new MyMessageFrm();
           myMessageFrm.MessageText = text;
           myMessageFrm.MessageCaption = caption;
           myMessageFrm.CreateButtonList();
           myMessageFrm.SetButtons(buttons);
           return myMessageFrm.ShowMyMessageBox();
       }
       public static MyMessageBoxResults Show(String text, String caption, MyMessageBoxButtons buttons, MyMessageBoxIcons icons)
       {
           MyMessageFrm myMessageFrm = new MyMessageFrm();
           myMessageFrm.MessageText = text;
           myMessageFrm.MessageCaption = caption;
           myMessageFrm.CreateButtonList();
           myMessageFrm.SetButtons(buttons);
           myMessageFrm.SetPicture(icons);
           return myMessageFrm.ShowMyMessageBox();
       }
       
    }
}
